home *** CD-ROM | disk | FTP | other *** search
- Path: news.unt.edu!news
- From: Steve Fogoros <sfogoros@hsc.unt.edu>
- Newsgroups: comp.lang.c
- Subject: Re: Borland in-line asm
- Date: Sun, 03 Mar 1996 09:31:17 -0800
- Organization: University of North Texas Health Science Center
- Message-ID: <3139D765.7E3B@hsc.unt.edu>
- References: <3139B06E.40C5@student.utwente.nl>
- NNTP-Posting-Host: sfogoros.hsc.unt.edu
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0 (Win16; I)
-
- Bas Broers wrote:
- >
- > Maybe a simple question, but how can i define a label in BASM (borland in-line assambler).
- > For example this program
- >
- > void main(void)
- > {
- > asm {
- >
- > mov ax,0x0010
- > mov cx,0x0010
- > next: inc ax
- > loop next
- > }
- > }
- >
- > Gives the error: Undefined label next
- >
- > Thanks: Bas Broers
-
- Do this:
-
- void main(void)
- {
- asm {
-
- mov ax,0x0010
- mov cx,0x0010
- }
- next:
- asm {
-
- inc ax
- loop next
- }
- }
-
- You could also write '} next: asm {' on one line. (Tested with Borland 3.1)
- --
- Steve Fogoros, Academic Information Coordinator
- University of North Texas Health Science Center
- sfogoros@hsc.unt.edu
-